# -*- coding: utf-8 -*-
"""
@File    : contextfactory
@Author  : caojy
@Time    : 24/07/30 15:46
"""
from typing import Any

from scrapy.core.downloader.contextfactory import ScrapyClientContextFactory


class NewScrapyClientContextFactory(ScrapyClientContextFactory):
    def __init__(self, *args: Any, **kwargs: Any):
        tls_ciphers = "DEFAULT:!DH"
        kwargs.update({"tls_ciphers": tls_ciphers})
        super().__init__(*args, **kwargs)
